package top.tangyh.lamp.care.vo.result;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import top.tangyh.lamp.care.entity.BExeYaoEvent;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * @Author:
 * @Date:
 */
@Data
@Schema(description ="执行用药事件回参类")
public class ExeYaoEventOutVO {

    private Long id;

    @Schema(description ="药物非分组id")
    private String groupId;

    @Schema(description ="事件类型")
    private String eventType;

    @Schema(description ="事件时间")
    private LocalDateTime eventTime;

    @Schema(description ="事件结束时间")
    private LocalDateTime eventOverTime;

    @Schema(description ="速度/推入量")
    private Integer speed;

    @Schema(description ="当前速度")
    private Integer currentSpeed;

    public ExeYaoEventOutVO(BExeYaoEvent eventPO) {
        this.id = eventPO.getId();
        this.groupId = eventPO.getGroupId();
        this.eventType = eventPO.getEventType();
        this.eventTime = eventPO.getEventTime();
        this.eventOverTime = eventPO.getEventOverTime();
        this.speed = eventPO.getSpeed();
        this.currentSpeed = eventPO.getCurrentSpeed();
    }

}
